package model

import "gitee.com/zaiqiang231/lovesport-user-service/app/model/meta"

type SysApi struct {
	meta.RecordModel
	Method      string `json:"method" gorm:"default:POST;comment:方法" validate:"required"` // 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE
	ApiGroup    string `json:"apiGroup" gorm:"comment:api组" validate:"required"`          // api组
	Path        string `json:"path" gorm:"comment:api路径" validate:"required"`             // api路径
	Description string `json:"description" gorm:"comment:api中文描述" validate:"required"`    // api中文描述
}

func (SysApi) TableName() string {
	return "sys_apis"
}
